package com.aier.school.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import com.aier.common.common.Constant;

/**
 * SchoolGrade entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class SchoolGrade implements java.io.Serializable {

    // 教师职务表

    private Long gid;            //职务id
    private Integer sid;        //学校id
    private String name;        //职务名
    private String desinfo;        //职务说明
    
    //扩展
    private Integer typeNumber;    //职务人数
    private String date_str;
    private List<SchoolGradeAttendance> sgaList;    //职务作息列表

    


    // Constructors

    /** default constructor */
    public SchoolGrade() {
    }

    /** minimal constructor */
    public SchoolGrade(Integer sid) {
        this.sid = sid;
    }

    /** full constructor */
    public SchoolGrade(Integer sid, String name) {
        this.sid = sid;
        this.name = name;
    }

    
    public SchoolGrade(Long gid, Integer sid, String name) {
        this.gid = gid;
        this.sid = sid;
        this.name = name;
    }

    
    public SchoolGrade(Integer sid, String name, String desinfo) {
        super();
        this.sid = sid;
        this.name = name;
        this.desinfo = desinfo;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "gid", unique = true, nullable = false)
    public Long getGid() {
        return this.gid;
    }

    public void setGid(Long gid) {
        this.gid = gid;
    }

    @Column(name = "name", length = Constant.num_20)
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "sid", nullable = false)
    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getTypeNumber() {
        return typeNumber;
    }

    public void setTypeNumber(Integer typeNumber) {
        this.typeNumber = typeNumber;
    }

    public String getDesinfo() {
        return desinfo;
    }

    public void setDesinfo(String desinfo) {
        this.desinfo = desinfo;
    }

    public List<SchoolGradeAttendance> getSgaList() {
        return sgaList;
    }

    public void setSgaList(List<SchoolGradeAttendance> sgaList) {
        this.sgaList = sgaList;
    }

    public String getDate_str() {
        return date_str;
    }

    public void setDate_str(String date_str) {
        this.date_str = date_str;
    }



}